
import shareService from './module/shareService.js'

const dynamicRouter = [
  {
    path: "/onemap", name: "onemap", component: () => import(/* webpackChunkName: "onemap" */ "@/views/one-map/index.vue"),
    meta: { title: "一张图概览", premiList: ['1', '2'] },
  },
  {
    path: '/sum-statistics', name: 'sumStatistics', component: () => import(/* webpackChunkName: "sumStatistics" */ "@/views/sum-statistics/index.vue"),
    meta: { title: '汇总统计', premiList: ['1', '2'] }
  },
  ...shareService,
  {
    path: 'https://www.baidu.com',
    name: '外部链接',
    meta: { title: '外部链接', premiList: ['1', '2'], islink: true }
  },
  {
    path: '/system-config', name: 'systemConfig', component: () => import(/* webpackChunkName: "sumStatistics" */ "@/views/system-config/index.vue"),
    meta: { title: '系统配置', premiList: ['1', '2'], noMenuPage: true }
  },
]

export default dynamicRouter;